import request from '../utils/request'

// 登录
export function login(params) {
  return request({
    url: '/sysUser/login',
    method: 'get',
    params
  })
}
// 获取用户信息
export function getUserInfo(params) {
  return request({
    url: '/api/sysUser/info',
    method: 'get',
    params
  })
}

// 获取菜单
export function infoMenu(params) {
  return request({
    url: '/api/menu/infoMenu',
    method: 'get',
    params
  })
}

// 修改密码
export function updatePassword(params) {
  return request({
    url: '/api/sysUser/updatePassword',
    method: 'post',
    data: params
  })
}

